/****************************************************************************
 * Copyright (c) 2021 Qualcomm Technologies International, Ltd.
****************************************************************************/
/**
 *
 * \file    wnd200_defs_public.h
 * \ingroup lib_private\aanc
 *
 * WND200 library header file providing public definitions common to C and
 * ASM code.
 */
#ifndef _WND200_LIB_DEFS_PUBLIC_H_
#define _WND200_LIB_DEFS_PUBLIC_H_

/******************************************************************************
Public Constant Definitions
*/

/* Constant used for power calculation. Based on deltaA (2^-27).
 * log2(deltaA*2) = log2((2^-27)*2) = log2(2^-23) = -26, Q8.N
 */
#define PWR_LOG2_DOUBLED_DELTA_A_IN_Q8_N Qfmt_(-26.0, 8)
/* Reduce the risk of saturation in the power calculation */
#define WND200_SCALE_PWR_SHIFT           -7
/* Increase the resolution when correlating */
#define WND200_SCALE_CHI2_SHIFT           4

#define WND200_DEFAULT_FRAME_SIZE  64
#define WND200_DEFAULT_BUFFER_SIZE WND200_DEFAULT_FRAME_SIZE + 1
#define WND200_SCRATCH_MEMORY      WND200_DEFAULT_BUFFER_SIZE * sizeof(int)
#define WND200_LPF_300             0
#define WND200_LPF_50              1
#define WND200_HPF_100             2
#endif /* _WND200_LIB_DEFS_PUBLIC_H_ */
